package com.guaoran.controller;

import com.guaoran.mapper.MybatisResultHandleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author : guaoran
 * @Description 处理mybatis 遇到表字段是xx.xx （字段名包含逗号） ，会将该字段解析为对象.属性方式
 * @date :2019/6/2 13:41
 */
@RestController
public class MybatisResultHandleController {
    @Autowired
    MybatisResultHandleMapper mybatisResultHandleMapper;

    @RequestMapping("/mybatis/result/handle/find/list")
    public List findList(){
        return mybatisResultHandleMapper.findListByMybatis();
    }
    @RequestMapping("/mybatis/result/handle/find/list2")
    public List findList2(){
        return mybatisResultHandleMapper.findListByObject();
    }
    @RequestMapping("/mybatis/result/handle/find/list3")
    public List findList3(){
        return mybatisResultHandleMapper.findList();
    }


}
